package com.luli.entity.poi;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SheetLocal implements Serializable {
    private static final long serialVersionUID = 989431214112465477L;
    private String sheetName;
    private String title;

    private String[] rowName;
    private String[] rowNameNext;
    private List<CellRangeAddressLocal> mergeRanges;

    private String[][] rowNum;

    private List<Object[]> dataList = new ArrayList<Object[]>();

    public SheetLocal(String title, String[] rowName, List<Object[]> dataList) {
        this.title = title;
        this.rowName = rowName;
        this.dataList = dataList;
    }

    public SheetLocal(String sheetName, String title, String[] rowName, List<Object[]> dataList) {
        this.sheetName = sheetName;
        this.title = title;
        this.rowName = rowName;
        this.dataList = dataList;
    }

    public SheetLocal(String title, String[] rowName, String[] rowNameNext, List<Object[]> dataList) {
        this.title = title;
        this.rowName = rowName;
        this.rowNameNext = rowNameNext;
        this.dataList = dataList;
    }

}
